package languageacquisition.ontology;

import jade.content.Concept;

public class LanguageSymbol implements Concept, Comparable<LanguageSymbol> {

	private static final long serialVersionUID = 3150837746208336376L;
	private int id;

	public LanguageSymbol() {
		id = -1;
	}

	public LanguageSymbol(int Id) {
		id = Id;
	}

	public int getId() {
		return id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LanguageSymbol other = (LanguageSymbol) obj;
		if (id != other.id)
			return false;
		return true;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String toString() {
		return Integer.toString(id);
	}

	@Override
	public int compareTo(LanguageSymbol symbol) {
		return new Integer(id).compareTo(symbol.getId());
	}
}
